package com.minova.demo.service;

import com.minova.demo.entity.TzProd;
import com.minova.demo.entity.TzProdComm;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商品 服务类
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
public interface ITzProdService extends IService<TzProd> {

	List<TzProd> selectTzProdByCid(int cid);
	List<TzProd> getSearchResult(String str,int descBy);
	
	/**
	 * 分页查询
	 * 
	 * @param prod_name 商品名
	 * @param category_id 商品分类
	 * @param page 页数
	 * @param size 每页数据数
	 * @return
	 */
	 IPage<TzProd> selectPageVo(String prod_name, String brief, String category_id, int page, int size,String byDesc);

	 TzProd selectTzProd(int sTzProdID);
	 
}
